({
    doInit : function(cmp, event, helper) {
        helper.Init(cmp);
        var currentPage = cmp.get("v.currentPage");
        var pageSize = cmp.get("v.pageSize");  
    },
    doSerch : function(cmp,event,helper){
        cmp.set('v.currentPage',1);
        var currentPage = cmp.get("v.currentPage");
        var pageSize = cmp.get("v.pageSize");

        helper.Init(cmp);
        
        helper.getPage(cmp, currentPage, pageSize);    
    },
    prePage : function(cmp,event,helper){
        var currentPage = cmp.get("v.currentPage");
        var pageSize = cmp.get("v.pageSize");
        cmp.set("v.currentPage",currentPage - 1);

        helper.getPage(cmp, currentPage - 1, pageSize);     
    },
    nextPage : function(cmp,event,helper){
        var currentPage = cmp.get("v.currentPage");
        var pageSize = cmp.get("v.pageSize");
        cmp.set("v.currentPage",currentPage + 1);

        helper.getPage(cmp, currentPage + 1, pageSize);        
    }
})